package com.pyf.demo.service.impl;

import com.pyf.demo.utils.PageUtils;
import com.pyf.demo.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.pyf.demo.dao.MountainDao;
import com.pyf.demo.entity.MountainEntity;
import com.pyf.demo.service.MountainService;


@Service("mountainService")
public class MountainServiceImpl extends ServiceImpl<MountainDao, MountainEntity> implements MountainService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MountainEntity> page = this.page(
                new Query<MountainEntity>().getPage(params),
                new QueryWrapper<MountainEntity>()
        );

        return new PageUtils(page);
    }

}